import request from '@/utils/request'

// 查询配件查询列表
export function listParts(query) {
  return request({
    url: '/business/parts/list',
    method: 'get',
    params: query
  })
}

// 查询配件查询详细
export function getParts(id) {
  return request({
    url: '/business/parts/' + id,
    method: 'get'
  })
}

// 新增配件查询
export function addParts(data) {
  return request({
    url: '/business/parts',
    method: 'post',
    data: data
  })
}

// 修改配件查询
export function updateParts(data) {
  return request({
    url: '/business/parts',
    method: 'put',
    data: data
  })
}

// 删除配件查询
export function delParts(id) {
  return request({
    url: '/business/parts/' + id,
    method: 'delete'
  })
}
